package org.liu.simpleTank;

public final class Util {
	public static boolean arrayContains(Object[] arr, Object key) {
		for(int i = 0; i < arr.length; i++)
			if(arr[i] == key)
				return true;
		return false;
	}
	
	public static boolean arrayContains(int[] arr, int key) {
		for(int i = 0; i < arr.length; i++)
			if(arr[i] == key)
				return true;
		return false;
	}
}
